package com.vincent.vo;


import com.vincent.common.constant.RegValidatePattern;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;


/**
 * 用户登录使用的接收对象
 */
public class LoginUserVo {

    @NotNull(message = "{validate.username.null.error}")
    @Pattern(regexp = RegValidatePattern.USERNAME,message = "{validate.username.reg.error}")
    private String userName;

    @NotNull(message = "{validate.password.null.error}")
    @Pattern(regexp = RegValidatePattern.PASSWORD,message = "{validate.password.reg.error}")
    private String password;

    @NotNull(message = "{validate.authcode.null.error}")
    @Pattern(regexp = RegValidatePattern.AUTHCODE,message = "{validate.authcode.reg.error}")
    private String authcode;
    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getAuthcode() {
        return authcode;
    }

    public void setAuthcode(String authcode) {
        this.authcode = authcode;
    }
}
